home *** CD-ROM | disk | FTP | other *** search
/ Clickx 22 / Clickx 22.iso / DATA / eLibPro1.3_setup.exe / Styles / Brief (CHS).xsl next >
Encoding:
Extensible Markup Language  |  2005-01-28  |  5.3 KB  |  156 lines

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3.     <xsl:output method="html" />
  4.     <!-- main template begins -->
  5.     <xsl:template match="/">
  6.         <HEAD>
  7.             <LINK REL="StyleSheet" TYPE="text/css" HREF="elib.css"></LINK>
  8.             <TITLE>eLibPro Σ╣ªτ▒ìΣ┐íµü»</TITLE>
  9.         </HEAD>
  10.         <BODY leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0">
  11.             <xsl:apply-templates />
  12.         </BODY>
  13.     </xsl:template>
  14.     <!-- template for individual book begins -->
  15.     <xsl:template match="Book">
  16.         <table border="0" cellspacing="0" cellpadding="0" width="100%" class="maintable">
  17.             <tr>
  18.                 <td>
  19.                     <!-- book title, first table in the main table -->
  20.                     <table border="0" cellspacing="1" cellpadding="0" width="100%">
  21.                         <tr>
  22.                             <td class="maintitle">
  23.                                 <xsl:value-of select="Title" />
  24.                                 <xsl:if test="Subtitle!=''">
  25.                                     <xsl:text> - </xsl:text>
  26.                                     <xsl:value-of select="Subtitle" />
  27.                                 </xsl:if>
  28.                                 <xsl:text></xsl:text>
  29.                                 <xsl:if test="ReleaseDate!=''">(<xsl:value-of select="ReleaseDate" />)
  30.                                 </xsl:if>
  31.                             </td>
  32.                         </tr>
  33.                     </table>
  34.                     <!-- front cover, book details and back cover, second table in the main table -->
  35.                     <table border="0" cellspacing="1" cellpadding="0" width="100%">
  36.                         <tr>
  37.                             <xsl:if test="FrontCover!=''">
  38.                                 <td class="subtitle" height="17">σ░üΘ¥ó</td>
  39.                             </xsl:if>
  40.                             <td class="subtitle" height="17">Σ╣ªτ▒ìΣ┐íµü»</td>
  41.                             <xsl:if test="BackCover!=''">
  42.                                 <td class="subtitle" height="17">σ░üσ║ò</td>
  43.                             </xsl:if>
  44.                         </tr>
  45.                         <tr valign="top">
  46.                             <xsl:if test="FrontCover!=''">
  47.                                 <td width="1" class="detailsbg">
  48.                                     <a elibhref="elibcover://{FrontCover}">
  49.                                         <img elibsrc="{FrontCover}" border="0" height="200" />
  50.                                     </a>
  51.                                 </td>
  52.                             </xsl:if>
  53.                             <td class="detailsbg">
  54.                                 <table width="100%" border="0" cellspacing="1" cellpadding="0">
  55.                                     <!-- author -->
  56.                                     <xsl:if test="Author!=''">
  57.                                         <tr valign="top">
  58.                                             <td class="celllabel" width="10%" nowrap="1">Σ╜£ΦÇà</td>
  59.                                             <td class="cellvalue">
  60.                                                 <xsl:value-of select="Author" />
  61.                                             </td>
  62.                                         </tr>
  63.                                     </xsl:if>
  64.                                     <!-- publisher -->
  65.                                     <xsl:if test="Publisher!=''">
  66.                                         <tr valign="top">
  67.                                             <td class="celllabel" width="10%" nowrap="1">σç║τëêτñ╛</td>
  68.                                             <td class="cellvalue">
  69.                                                 <xsl:value-of select="Publisher" />
  70.                                             </td>
  71.                                         </tr>
  72.                                     </xsl:if>
  73.                                     <xsl:if test="ISBN!=''">
  74.                                         <tr valign="top">
  75.                                             <td class="celllabel" width="10%" nowrap="1">ISBN</td>
  76.                                             <td class="cellvalue">
  77.                                                 <xsl:value-of select="ISBN" />
  78.                                             </td>
  79.                                         </tr>
  80.                                     </xsl:if>
  81.                                     <xsl:if test="Edition!=''">
  82.                                         <tr valign="top">
  83.                                             <td class="celllabel" width="10%" nowrap="1">τëêµ£¼</td>
  84.                                             <td class="cellvalue">
  85.                                                 <xsl:apply-templates select="Edition" />
  86.                                             </td>
  87.                                         </tr>
  88.                                     </xsl:if>
  89.                                     <!-- release date -->
  90.                                     <xsl:if test="ReleaseDate!=''">
  91.                                         <tr valign="top" width="10%" nowrap="1">
  92.                                             <td class="celllabel" width="10%" nowrap="1">σÅæσ╕âµùѵ£ƒ</td>
  93.                                             <td class="cellvalue">
  94.                                                 <xsl:value-of select="ReleaseDate" />
  95.                                             </td>
  96.                                         </tr>
  97.                                     </xsl:if>
  98.                                     <xsl:if test="ListPrice!=''">
  99.                                         <tr valign="top">
  100.                                             <td class="celllabel" width="10%" nowrap="1">σ«ÜΣ╗╖</td>
  101.                                             <td class="cellvalue">
  102.                                                 <xsl:value-of select="ListPrice" />
  103.                                             </td>
  104.                                         </tr>
  105.                                     </xsl:if>
  106.                                     <xsl:if test="PageCount!=''">
  107.                                         <tr valign="top">
  108.                                             <td class="celllabel" width="10%" nowrap="1">Θí╡µò░</td>
  109.                                             <td class="cellvalue">
  110.                                                 <xsl:value-of select="PageCount" />
  111.                                             </td>
  112.                                         </tr>
  113.                                     </xsl:if>
  114.                                     <xsl:if test="URL!=''">
  115.                                         <tr valign="top">
  116.                                             <td class="celllabel" width="10%" nowrap="1">URL</td>
  117.                                             <td class="cellvalue">
  118.                                                 <a title="{URL}" href="{URL}" class="link">Φ»ÑΣ╣ªWebΘí╡Θ¥ó</a>
  119.                                             </td>
  120.                                         </tr>
  121.                                     </xsl:if>
  122.                                     <xsl:if test="AmazonRating!=''">
  123.                                         <tr valign="top">
  124.                                             <td class="celllabel" width="10%" nowrap="1">Amazonτö¿µê╖Φ»äΣ╗╖</td>
  125.                                             <td class="cellvalue">
  126.                                                 <xsl:value-of select="AmazonRating" /> <xsl:text> / 5</xsl:text>
  127.                                             </td>
  128.                                         </tr>
  129.                                     </xsl:if>
  130.                                     <xsl:if test="Status!=''">
  131.                                         <tr valign="top">
  132.                                             <td class="celllabel" width="10%" nowrap="1">τè╢µÇü</td>
  133.                                             <td class="cellvalue">
  134.                                                 <xsl:value-of select="Status" />
  135.                                             </td>
  136.                                         </tr>
  137.                                     </xsl:if>
  138.                                 </table>
  139.                             </td>
  140.                             <!-- end of book details -->
  141.                             <!-- back cover -->
  142.                             <xsl:if test="BackCover!=''">
  143.                                 <td align="right" width="1" class="detailsbg">
  144.                                     <a elibhref="elibcover://{BackCover}">
  145.                                         <img elibsrc="{BackCover}" border="0" height="200" />
  146.                                     </a>
  147.                                 </td>
  148.                             </xsl:if>
  149.                         </tr>
  150.                     </table>
  151.                 </td>
  152.             </tr>
  153.         </table>
  154.     </xsl:template>
  155. </xsl:stylesheet>
  156.